package com.ruoyi.eam.doman;

import java.util.Date;
import java.util.List;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

/**
 * 借用归还对象 eam_loanback_h
 *
 * @author xl
 * @date 2024-07-08
 */
public class EamLoanbackH extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 借用归还id */
    private Long loanBackId;

    /** 借用归还单号 */
    @Excel(name = "借用归还单号")
    private String loanCode;

    /** 借用类型 1.内部借用 2.外部联系人借用 3.供应商借用 */
    @Excel(name = "借用类型 1.内部借用 2.外部联系人借用 3.供应商借用")
    private Long loanType;

    /** 借用人员 */
    @Excel(name = "借用人员")
    private Long loanCrew;

    @Excel(name = "借用人员")
    private String loanCrewName;

    /** 借用部门 */
    @Excel(name = "借用部门")
    private Long loanDept;

    @Excel(name = "借用部门")
    private String loanDeptName;

    /** 存放位置 */
    @Excel(name = "存放位置")
    private Long locationId;

    /** 借用日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "借用日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date loanDate;

    /** 归还日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "归还日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date backDate;

    /** 创建人 */
    @Excel(name = "创建人")
    private Long creator;

    @Excel(name = "创建人")
    private String creatorName;

    /** 单据状态 */
    @Excel(name = "单据状态")
    private Long receiptsStatus;

    /** 审核人 */
    @Excel(name = "审核人")
    private Long auditPerson;

    @Excel(name = "审核人")
    private String auditName;

    /** 审核时间 */
    @Excel(name = "审核时间", width = 30, dateFormat = "yyyy-MM-dd")
    private String auditDate;

    /** 1.正常 0.删除 */
    @Excel(name = "1.正常 0.删除")
    private Long isdel;

    /** 1.借用 2.归还 */
    @Excel(name = "1.借用 2.归还")
    private Long isLoanBack;

    @Excel(name = "归还单据状态")
    private Long backStatus;

    @Excel(name = "归还单据状态")
    private String auditReason;

    @Excel(name = "归还单创建时间")
    private String backCreateDate;

    @Excel(name = "归还单审核人")
    private Long backAuditPerson;

    @Excel(name = "归还单审核人")
    private String backAuditDeptName;

    @Excel(name = "归还单审核人名称")
    private String backAuditPersonName;

    @Excel(name = "归还单审核时间")
    private String backAuditDate;

    @Excel(name = "归还单创建人")
    private Long backCreator;

    @Excel(name = "归还单创建人名称")
    private String backCreatorName;

    @Excel(name = "归还单审核原因")
    private String backAuditReason;


    @Excel(name = "归还单据状态")
    private Long isbackdel;

    public String getBackAuditDeptName() {
        return backAuditDeptName;
    }

    public void setBackAuditDeptName(String backAuditDeptName) {
        this.backAuditDeptName = backAuditDeptName;
    }

    public String getBackCreatorName() {
        return backCreatorName;
    }

    public void setBackCreatorName(String backCreatorName) {
        this.backCreatorName = backCreatorName;
    }

    public Long getBackCreator() {
        return backCreator;
    }

    public void setBackCreator(Long backCreator) {
        this.backCreator = backCreator;
    }

    public String getBackAuditReason() {
        return backAuditReason;
    }

    public void setBackAuditReason(String backAuditReason) {
        this.backAuditReason = backAuditReason;
    }

    public Long getIsbackdel() {
        return isbackdel;
    }

    public void setIsbackdel(Long isbackdel) {
        this.isbackdel = isbackdel;
    }

    public String getAuditReason() {
        return auditReason;
    }

    public void setAuditReason(String auditReason) {
        this.auditReason = auditReason;
    }

    public String getBackCreateDate() {
        return backCreateDate;
    }

    public void setBackCreateDate(String backCreateDate) {
        this.backCreateDate = backCreateDate;
    }

    public Long getBackAuditPerson() {
        return backAuditPerson;
    }

    public void setBackAuditPerson(Long backAuditPerson) {
        this.backAuditPerson = backAuditPerson;
    }

    public String getBackAuditPersonName() {
        return backAuditPersonName;
    }

    public void setBackAuditPersonName(String backAuditPersonName) {
        this.backAuditPersonName = backAuditPersonName;
    }

    public String getBackAuditDate() {
        return backAuditDate;
    }

    public void setBackAuditDate(String backAuditDate) {
        this.backAuditDate = backAuditDate;
    }

    private List<EamAsset> loanbackDS;

    public List<EamAsset> getLoanbackDS() {
        return loanbackDS;
    }

    public void setLoanbackDS(List<EamAsset> loanbackDS) {
        this.loanbackDS = loanbackDS;
    }

    public String getLoanCrewName() {
        return loanCrewName;
    }

    public void setLoanCrewName(String loanCrewName) {
        this.loanCrewName = loanCrewName;
    }

    public String getLoanDeptName() {
        return loanDeptName;
    }

    public void setLoanDeptName(String loanDeptName) {
        this.loanDeptName = loanDeptName;
    }

    public String getCreatorName() {
        return creatorName;
    }

    public void setCreatorName(String creatorName) {
        this.creatorName = creatorName;
    }

    public String getAuditName() {
        return auditName;
    }

    public void setAuditName(String auditName) {
        this.auditName = auditName;
    }

    public void setLoanBackId(Long loanBackId)
    {
        this.loanBackId = loanBackId;
    }

    public Long getLoanBackId()
    {
        return loanBackId;
    }
    public void setLoanCode(String loanCode)
    {
        this.loanCode = loanCode;
    }

    public String getLoanCode()
    {
        return loanCode;
    }
    public void setLoanType(Long loanType)
    {
        this.loanType = loanType;
    }

    public Long getBackStatus() {
        return backStatus;
    }

    public void setBackStatus(Long backStatus) {
        this.backStatus = backStatus;
    }

    public Long getLoanType()
    {
        return loanType;
    }
    public void setLoanCrew(Long loanCrew)
    {
        this.loanCrew = loanCrew;
    }

    public Long getLoanCrew()
    {
        return loanCrew;
    }
    public void setLoanDept(Long loanDept)
    {
        this.loanDept = loanDept;
    }

    public Long getLoanDept()
    {
        return loanDept;
    }
    public void setLocationId(Long locationId)
    {
        this.locationId = locationId;
    }

    public Long getLocationId()
    {
        return locationId;
    }
    public void setLoanDate(Date loanDate)
    {
        this.loanDate = loanDate;
    }

    public Date getLoanDate()
    {
        return loanDate;
    }
    public void setBackDate(Date backDate)
    {
        this.backDate = backDate;
    }

    public Date getBackDate()
    {
        return backDate;
    }
    public void setCreator(Long creator)
    {
        this.creator = creator;
    }

    public Long getCreator()
    {
        return creator;
    }
    public void setReceiptsStatus(Long receiptsStatus)
    {
        this.receiptsStatus = receiptsStatus;
    }

    public Long getReceiptsStatus()
    {
        return receiptsStatus;
    }
    public void setAuditPerson(Long auditPerson)
    {
        this.auditPerson = auditPerson;
    }

    public Long getAuditPerson()
    {
        return auditPerson;
    }
    public void setAuditDate(String auditDate)
    {
        this.auditDate = auditDate;
    }

    public String getAuditDate()
    {
        return auditDate;
    }
    public void setIsdel(Long isdel)
    {
        this.isdel = isdel;
    }

    public Long getIsdel()
    {
        return isdel;
    }
    public void setIsLoanBack(Long isLoanBack)
    {
        this.isLoanBack = isLoanBack;
    }

    public Long getIsLoanBack()
    {
        return isLoanBack;
    }

    @Override
    public String toString() {
        return "EamLoanbackH{" +
                "loanBackId=" + loanBackId +
                ", loanCode='" + loanCode + '\'' +
                ", loanType=" + loanType +
                ", loanCrew=" + loanCrew +
                ", loanCrewName='" + loanCrewName + '\'' +
                ", loanDept=" + loanDept +
                ", loanDeptName='" + loanDeptName + '\'' +
                ", locationId=" + locationId +
                ", loanDate=" + loanDate +
                ", backDate=" + backDate +
                ", creator=" + creator +
                ", creatorName='" + creatorName + '\'' +
                ", receiptsStatus=" + receiptsStatus +
                ", auditPerson=" + auditPerson +
                ", auditName='" + auditName + '\'' +
                ", auditDate=" + auditDate +
                ", isdel=" + isdel +
                ", isLoanBack=" + isLoanBack +
                ", backStatus=" + backStatus +
                ", loanbackDS=" + loanbackDS +
                ", auditReason=" + auditReason +
                '}';
    }
}
